[INFO] cloning repository https://github.com/KarstenWeikamp/rust-chess
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KarstenWeikamp/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarstenWeikamp%2Frust-chess", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarstenWeikamp%2Frust-chess'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1ef25105c3a65250c802bcba87e8900beaa1b026
[INFO] checking KarstenWeikamp/rust-chess against master#9610dfe5a9a731ced1ea4923ecbd0c57fe367898 for beta-170-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarstenWeikamp%2Frust-chess" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KarstenWeikamp/rust-chess on toolchain 9610dfe5a9a731ced1ea4923ecbd0c57fe367898
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/KarstenWeikamp/rust-chess
[INFO] finished tweaking git repo https://github.com/KarstenWeikamp/rust-chess
[INFO] tweaked toml for git repo https://github.com/KarstenWeikamp/rust-chess written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/KarstenWeikamp/rust-chess already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c65bad9fe0d26542ea04115a33a9c85054994832b7b34591819019c8aa05a5fb
[INFO] running `Command { std: "docker" "start" "-a" "c65bad9fe0d26542ea04115a33a9c85054994832b7b34591819019c8aa05a5fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c65bad9fe0d26542ea04115a33a9c85054994832b7b34591819019c8aa05a5fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c65bad9fe0d26542ea04115a33a9c85054994832b7b34591819019c8aa05a5fb", kill_on_drop: false }`
[INFO] [stdout] c65bad9fe0d26542ea04115a33a9c85054994832b7b34591819019c8aa05a5fb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c4d2fe97ba640afba327ac5e581ade7785ebf8e58d7003da2ee1169c6b8b2d29
[INFO] running `Command { std: "docker" "start" "-a" "c4d2fe97ba640afba327ac5e581ade7785ebf8e58d7003da2ee1169c6b8b2d29", kill_on_drop: false }`
[INFO] [stderr]     Checking text_io v0.1.12
[INFO] [stderr]     Checking aho-corasick v0.7.19
[INFO] [stderr]     Checking regex v1.6.0
[INFO] [stderr]     Checking rust_chess v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found keyword `const`
[INFO] [stdout]   --> src/main.rs:13:24
[INFO] [stdout]    |
[INFO] [stdout] 13 | const NOPLAYER: u8 = -1 
[INFO] [stdout]    |                        ^ help: add `;` here
[INFO] [stdout] 14 | const WHITE: u8 = 0
[INFO] [stdout]    | ----- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `const`
[INFO] [stdout]   --> src/main.rs:13:24
[INFO] [stdout]    |
[INFO] [stdout] 13 | const NOPLAYER: u8 = -1 
[INFO] [stdout]    |                        ^ help: add `;` here
[INFO] [stdout] 14 | const WHITE: u8 = 0
[INFO] [stdout]    | ----- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `const`
[INFO] [stdout]   --> src/main.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | const WHITE: u8 = 0
[INFO] [stdout]    |                    ^ help: add `;` here
[INFO] [stdout] 15 | const BLACK: u8 = 1
[INFO] [stdout]    | ----- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `const`
[INFO] [stdout]   --> src/main.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | const WHITE: u8 = 0
[INFO] [stdout]    |                    ^ help: add `;` here
[INFO] [stdout] 15 | const BLACK: u8 = 1
[INFO] [stdout]    | ----- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found `#`
[INFO] [stdout]   --> src/main.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 | const BLACK: u8 = 1
[INFO] [stdout]    |                    ^ help: add `;` here
[INFO] [stdout] 16 |
[INFO] [stdout] 17 | #[derive(Copy, Clone)]
[INFO] [stdout]    | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found `#`
[INFO] [stdout]   --> src/main.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 | const BLACK: u8 = 1
[INFO] [stdout]    |                    ^ help: add `;` here
[INFO] [stdout] 16 |
[INFO] [stdout] 17 | #[derive(Copy, Clone)]
[INFO] [stdout]    | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `=>`
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |         Owner::None => ' '
[INFO] [stdout]    |                     ^^ expected one of 8 possible tokens
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `=>`
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |         Owner::None => ' '
[INFO] [stdout]    |                     ^^ expected one of 8 possible tokens
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `}`
[INFO] [stdout]    --> src/main.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 130 |         _ =>
[INFO] [stdout]     |           -- while parsing the `match` arm starting here
[INFO] [stdout] 131 |     }
[INFO] [stdout]     |     ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `}`
[INFO] [stdout]    --> src/main.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 130 |         _ =>
[INFO] [stdout]     |           -- while parsing the `match` arm starting here
[INFO] [stdout] 131 |     }
[INFO] [stdout]     |     ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]    --> src/main.rs:112:11
[INFO] [stdout]     |
[INFO] [stdout] 112 |     match state {
[INFO] [stdout]     |           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece` in this scope
[INFO] [stdout]    --> src/main.rs:121:11
[INFO] [stdout]     |
[INFO] [stdout] 121 |     match piece{
[INFO] [stdout]     |           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]    --> src/main.rs:112:11
[INFO] [stdout]     |
[INFO] [stdout] 112 |     match state {
[INFO] [stdout]     |           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `player` in this scope
[INFO] [stdout]    --> src/main.rs:125:52
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if board[tgt.0][tgt.1 -1].owner == player {
[INFO] [stdout]     |                                                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece` in this scope
[INFO] [stdout]    --> src/main.rs:121:11
[INFO] [stdout]     |
[INFO] [stdout] 121 |     match piece{
[INFO] [stdout]     |           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `player` in this scope
[INFO] [stdout]    --> src/main.rs:125:52
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if board[tgt.0][tgt.1 -1].owner == player {
[INFO] [stdout]     |                                                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::default`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::default;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::default`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::default;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `regex`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use regex;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `regex`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use regex;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u8`
[INFO] [stdout]   --> src/main.rs:13:22
[INFO] [stdout]    |
[INFO] [stdout] 13 | const NOPLAYER: u8 = -1 
[INFO] [stdout]    |                      ^^
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      cannot apply unary operator `-`
[INFO] [stdout]    |                      help: you may have meant the maximum value of `u8`: `u8::MAX`
[INFO] [stdout]    |
[INFO] [stdout]    = note: unsigned values cannot be negated
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u8`
[INFO] [stdout]   --> src/main.rs:13:22
[INFO] [stdout]    |
[INFO] [stdout] 13 | const NOPLAYER: u8 = -1 
[INFO] [stdout]    |                      ^^
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      cannot apply unary operator `-`
[INFO] [stdout]    |                      help: you may have meant the maximum value of `u8`: `u8::MAX`
[INFO] [stdout]    |
[INFO] [stdout]    = note: unsigned values cannot be negated
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `vec`
[INFO] [stdout]    --> src/main.rs:120:25
[INFO] [stdout]     |
[INFO] [stdout] 120 |     let mut pos_moves = vec::new();
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         use of undeclared crate or module `vec`
[INFO] [stdout]     |                         help: a struct with a similar name exists (notice the capitalization): `Vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `vec`
[INFO] [stdout]    --> src/main.rs:120:25
[INFO] [stdout]     |
[INFO] [stdout] 120 |     let mut pos_moves = vec::new();
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         use of undeclared crate or module `vec`
[INFO] [stdout]     |                         help: a struct with a similar name exists (notice the capitalization): `Vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[Vec<Piece>]` cannot be indexed by `u8`
[INFO] [stdout]    --> src/main.rs:124:39
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if let Type::Pawn = board[tgt.0][tgt.1 -1] {
[INFO] [stdout]     |                                       ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `SliceIndex<[Vec<Piece>]>` is not implemented for `u8`
[INFO] [stdout]     = help: the trait `SliceIndex<[T]>` is implemented for `usize`
[INFO] [stdout]     = note: required for `Vec<Vec<Piece>>` to implement `Index<u8>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[Vec<Piece>]` cannot be indexed by `u8`
[INFO] [stdout]    --> src/main.rs:124:39
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if let Type::Pawn = board[tgt.0][tgt.1 -1] {
[INFO] [stdout]     |                                       ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `SliceIndex<[Vec<Piece>]>` is not implemented for `u8`
[INFO] [stdout]     = help: the trait `SliceIndex<[T]>` is implemented for `usize`
[INFO] [stdout]     = note: required for `Vec<Vec<Piece>>` to implement `Index<u8>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[Vec<Piece>]` cannot be indexed by `u8`
[INFO] [stdout]    --> src/main.rs:125:26
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if board[tgt.0][tgt.1 -1].owner == player {
[INFO] [stdout]     |                          ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `SliceIndex<[Vec<Piece>]>` is not implemented for `u8`
[INFO] [stdout]     = help: the trait `SliceIndex<[T]>` is implemented for `usize`
[INFO] [stdout]     = note: required for `Vec<Vec<Piece>>` to implement `Index<u8>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[Vec<Piece>]` cannot be indexed by `u8`
[INFO] [stdout]    --> src/main.rs:125:26
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if board[tgt.0][tgt.1 -1].owner == player {
[INFO] [stdout]     |                          ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `SliceIndex<[Vec<Piece>]>` is not implemented for `u8`
[INFO] [stdout]     = help: the trait `SliceIndex<[T]>` is implemented for `usize`
[INFO] [stdout]     = note: required for `Vec<Vec<Piece>>` to implement `Index<u8>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0600.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0600.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_chess` (bin "rust_chess") due to 13 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust_chess` (bin "rust_chess" test) due to 13 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c4d2fe97ba640afba327ac5e581ade7785ebf8e58d7003da2ee1169c6b8b2d29", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c4d2fe97ba640afba327ac5e581ade7785ebf8e58d7003da2ee1169c6b8b2d29", kill_on_drop: false }`
[INFO] [stdout] c4d2fe97ba640afba327ac5e581ade7785ebf8e58d7003da2ee1169c6b8b2d29
